package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.Dynamic;
import com.ytjj.qmyx.mall.model.DynamicExample;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DynamicMapper {
    long countByExample(DynamicExample example);

    int deleteByExample(DynamicExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Dynamic record);

    int insertSelective(Dynamic record);

    List<Dynamic> selectByExample(DynamicExample example);

    Dynamic selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Dynamic record, @Param("example") DynamicExample example);

    int updateByExample(@Param("record") Dynamic record, @Param("example") DynamicExample example);

    int updateByPrimaryKeySelective(Dynamic record);

    int updateByPrimaryKey(Dynamic record);

    int countDynamicNumByUserId(Integer userId);

    Date selectTimeByUserId(Integer userId);

    Integer talentDynamicNum(Integer userId);
}